xl: implement and enable dryrun mode for `xl vcpu-pin'
authorDario Faggioli <dario.faggioli@citrix.com>
Sat, 7 Dec 2013 00:05:26 +0000 (01:05 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 9 Dec 2013 15:20:12 +0000 (15:20 +0000)
commit62c562557a8a52612fa4ad960a285f5cd618611e
tree633ee41f19c6756d207b41ffc5b16edb2514d243
parent23772b35cf1d18c830bc28b28b55eccbcf8e24be
xl: implement and enable dryrun mode for `xl vcpu-pin'

As it can be useful to see if the outcome of some complex vCPU
pinning bitmap specification looks as expected.

This also allow for the introduction of some automatic testing
and verification for the bitmap parsing code, as it happens
already in check-xl-disk-parse and check-xl-vif-parse.

In particular, to make the above possible, this commit also
changes the implementation of the vcpu-pin command so that,
instead of always returning 0, it returns an error if the
parsing fails.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/xl_cmdimpl.c
tools/libxl/xl_cmdtable.c